package com.youlai.boot.auth.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 账号密码登录 DTO
 */
@Data
@Schema(description = "账号密码登录对象")
public class AccountLoginDTO {

    @Schema(description = "用户名", example = "admin")
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "密码", example = "123456")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "租户ID", example = "1")
    private Long tenantId;  // ← 新增

    @Schema(description = "验证码Key")
    private String captchaKey;

    @Schema(description = "验证码值")
    private String captchaCode;
}
